package com.tjh.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tjh.common.utils.PageUtils;
import com.tjh.gulimall.product.entity.SkuInfoEntity;
import com.tjh.gulimall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * Create by koala on 2021-01-24 21:36:10
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //day35.2
    void saveSkuInfo(SkuInfoEntity skuInfoEntity);

    //day39
    PageUtils queryPageByCondition(Map<String, Object> params);

    //day50
    List<SkuInfoEntity> getSkuBySpuId(Long spuId);

    //day91
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

